package designpattern.prototype.demo01;

import java.util.Date;

/**
 * @author cyt
 * @create 2020-04-23 16:20
 */
public class user implements Cloneable {

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    private Integer id;
    private String name;
    private Date date;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "user{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", date=" + date +
                '}';
    }

    public user() {
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public Date getDate() {
        return date;
    }

    public user(Integer id, String name, Date date) {
        this.id = id;
        this.name = name;
        this.date = date;
    }
}



